package com.xzssmk.leisure.x.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xzssmk.leisure.x.po.PeriodSpot;
import com.xzssmk.leisure.x.po.PeriodSpotExample;
import com.xzssmk.leisure.x.po.PeriodSpotExt;

public interface PeriodSpotMapper {
    long countByExample(PeriodSpotExample example);

    int deleteByExample(PeriodSpotExample example);

    int deleteByPrimaryKey(Integer periodSpotId);

    int insert(PeriodSpot record);

    int insertSelective(PeriodSpot record);

    List<PeriodSpot> selectByExample(PeriodSpotExample example);

    PeriodSpot selectByPrimaryKey(Integer periodSpotId);

    int updateByExampleSelective(@Param("record") PeriodSpot record, @Param("example") PeriodSpotExample example);

    int updateByExample(@Param("record") PeriodSpot record, @Param("example") PeriodSpotExample example);

    int updateByPrimaryKeySelective(PeriodSpot record);

    int updateByPrimaryKey(PeriodSpot record);

    long selectRecordCount(@Param("issuePeriodId") Integer issuePeriodId, @Param("scenicSpotId") Integer scenicSpotId);

    List<PeriodSpotExt> getPageList(@Param("subSQL") String subSQL);

    List<PeriodSpotExt> getSCardPageList(@Param("issuePeriodId") String issuePeriodId,@Param("splitPattern") String splitPattern);

    int deleteByPrimaryKeys(@Param("idlist") List<Integer> idlist);
}